package com.qf.efserver.sport.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.common.core.entity.SportDay;
import com.qf.efserver.sport.param.SportDayParam;
import io.swagger.models.auth.In;

import java.util.List;

public interface SportDayMapper extends BaseMapper<SportDay> {
    /**
     * 查询某周每天运动数据
     * @param weekId
     * @param uid
     * @return
     */
    List<SportDay> selectWeek(Integer weekId, Integer uid);

    /**
     * 查询某周消耗卡路里的总和和运动时长的平均值
     * @param weekId
     * @param uid
     * @return
     */
    SportDayParam selectWeekCal(Integer weekId, Integer uid);
    /**
     * 查询当天运动数据
     * @param uid
     * @return
     */
    SportDay selectByUidCreateTime(Integer uid);

    /**
     * 查询某月每天运动数据
     * @param monthId
     * @param uid
     * @return
     */
    List<SportDay> selectMonth(Integer monthId, Integer uid);
}
